<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>从手工作坊到智能工厂：运维演进史</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        .serif {
            font-family: 'Noto Serif SC', serif;
        }
        .hero {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .code-block {
            background-color: #f8f8f8;
            border-left: 4px solid #2a5298;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -1.5rem;
            top: 0;
            height: 100%;
            width: 2px;
            background: #e2e8f0;
        }
        .timeline-dot {
            position: absolute;
            left: -1.8rem;
            top: 0.5rem;
            width: 0.75rem;
            height: 0.75rem;
            border-radius: 50%;
            background-color: #2a5298;
            border: 3px solid #fff;
            box-shadow: 0 0 0 2px #2a5298;
        }
        .comparison-table tr:nth-child(even) {
            background-color: #f7fafc;
        }
        .comparison-table th {
            background-color: #2a5298;
            color: white;
        }
        .comparison-table td, .comparison-table th {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero text-white py-20 px-4 md:py-32">
        <div class="container mx-auto max-w-6xl">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="serif text-4xl md:text-5xl font-bold leading-tight mb-6">从手工作坊到智能工厂</h1>
                    <h2 class="text-2xl md:text-3xl font-light mb-8">运维演进史与技术革新</h2>
                    <p class="text-lg opacity-90 mb-8">探索运维技术从手动操作到智能自动化的演进历程，揭示DevOps与AIOps如何重塑现代IT基础设施管理。</p>
                    <div class="flex space-x-4">
                        <a href="#history" class="bg-white text-blue-900 font-semibold px-6 py-3 rounded-lg hover:bg-opacity-90 transition">探索历史</a>
                        <a href="#tools" class="border border-white text-white font-semibold px-6 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 transition">工具全景</a>
                    </div>
                </div>
                <div class="md:w-1/2 flex justify-center">
                    <img src="https://img.freepik.com/free-vector/hand-drawn-flat-design-devops-illustration_23-2149387525.jpg" alt="DevOps Illustration" class="rounded-lg shadow-xl w-full max-w-md">
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <div class="container mx-auto max-w-6xl px-4 py-12">
        <!-- Section 1: History -->
        <section id="history" class="mb-20">
            <div class="flex items-center mb-10">
                <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                    <i class="fas fa-history text-xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold text-gray-800">一、从手工作坊到智能工厂：运维演进史</h2>
            </div>
            
            <p class="text-lg text-gray-700 mb-8 leading-relaxed">想象一家汽车工厂的变迁史，这个类比完美诠释了运维技术的发展历程。从最初的纯手工操作，到部分自动化，再到如今的智能化管理，运维领域经历了翻天覆地的变化。</p>
            
            <div class="grid md:grid-cols-3 gap-8 mb-12">
                <div class="bg-white p-6 rounded-xl shadow-md card-hover">
                    <div class="text-blue-600 mb-4">
                        <i class="fas fa-tools text-4xl"></i>
                    </div>
                    <h3 class="serif text-xl font-bold mb-3">手工时代</h3>
                    <p class="text-gray-600 mb-4">每个工人（运维工程师）手动拧螺丝（<code class="bg-gray-100 px-1 py-0.5 rounded">vim /etc/config</code>），效率低下且容易出错。</p>
                    <ul class="space-y-2 text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>直接服务器管理</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>无标准化流程</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>依赖个人经验</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md card-hover">
                    <div class="text-blue-600 mb-4">
                        <i class="fas fa-conveyor-belt text-4xl"></i>
                    </div>
                    <h3 class="serif text-xl font-bold mb-3">流水线时代</h3>
                    <p class="text-gray-600 mb-4">传送带（Shell脚本）实现基础自动化，提高了重复性任务的效率。</p>
                    <ul class="space-y-2 text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>脚本自动化</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>初步标准化</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>减少人为错误</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md card-hover">
                    <div class="text-blue-600 mb-4">
                        <i class="fas fa-robot text-4xl"></i>
                    </div>
                    <h3 class="serif text-xl font-bold mb-3">智能工厂</h3>
                    <p class="text-gray-600 mb-4">机器人（Ansible）+ 物联网（监控系统）+ 中央控制系统（K8s），实现全流程自动化与智能化。</p>
                    <ul class="space-y-2 text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>基础设施即代码</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>自愈系统</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-blue-500 mt-1 mr-2"></i>
                            <span>预测性维护</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="bg-white p-6 rounded-xl shadow-md mb-8">
                <h3 class="serif text-xl font-bold mb-4 text-gray-800">运维演进历程</h3>
                <div class="mermaid">
                    graph LR
                        A[手工运维] -->|脚本自动化| B[自动化运维]
                        B -->|基础设施即代码| C[DevOps]
                        C -->|AI/ML技术| D[AIOps]
                </div>
            </div>
        </section>

        <!-- Section 2: DevOps Tools -->
        <section id="tools" class="mb-20">
            <div class="flex items-center mb-10">
                <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                    <i class="fas fa-tools text-xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold text-gray-800">二、DevOps工具链全景图</h2>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <div class="flex items-start mb-4">
                        <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                            <i class="fas fa-code text-xl"></i>
                        </div>
                        <h3 class="serif text-xl font-bold text-gray-800">1. 基础设施即代码（IaC）</h3>
                    </div>
                    
                    <div class="mb-6">
                        <h4 class="font-semibold text-gray-700 mb-2">Ansible - 万能遥控器</h4>
                        <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                            <pre class="text-sm text-gray-800"><code># 部署Java环境的Playbook
- name: 配置Java服务器
  hosts: webservers
  tasks:
    - name: 安装JDK17
      ansible.builtin.yum:
        name: java-17-openjdk
        state: present
    
    - name: 设置环境变量
      ansible.builtin.lineinfile:
        path: /etc/environment
        line: 'JAVA_HOME=/usr/lib/jvm/java-17-openjdk'</code></pre>
                        </div>
                    </div>
                    
                    <div>
                        <h4 class="font-semibold text-gray-700 mb-2">Terraform - 云端乐高</h4>
                        <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                            <pre class="text-sm text-gray-800"><code># 创建AWS EC2实例
resource "aws_instance" "app_server" {
  ami           = "ami-0c55b159cbfafe1f0"
  instance_type = "t3.medium"
  
  tags = {
    Name = "JavaApp-Prod"
  }
}</code></pre>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <div class="flex items-start mb-4">
                        <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                            <i class="fas fa-project-diagram text-xl"></i>
                        </div>
                        <h3 class="serif text-xl font-bold text-gray-800">2. CI/CD流水线</h3>
                    </div>
                    
                    <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                        <pre class="text-sm text-gray-800"><code>pipeline {
    agent any
    stages {
        stage('构建') {
            steps {
                sh 'mvn clean package -DskipTests'
            }
        }
        stage('测试') {
            steps {
                parallel(
                    "单元测试": { sh 'mvn test' },
                    "集成测试": { sh 'mvn verify -Pintegration' }
                )
            }
        }
        stage('部署') {
            steps {
                ansiblePlaybook(
                    playbook: 'deploy.yml',
                    inventory: 'production.inv'
                )
            }
        }
    }
}</code></pre>
                    </div>
                    
                    <div class="grid grid-cols-3 gap-4 mt-6">
                        <div class="bg-blue-50 p-3 rounded-lg text-center">
                            <i class="fas fa-cubes text-blue-600 text-2xl mb-2"></i>
                            <p class="text-sm font-medium">模块化构建</p>
                        </div>
                        <div class="bg-blue-50 p-3 rounded-lg text-center">
                            <i class="fas fa-check-circle text-green-600 text-2xl mb-2"></i>
                            <p class="text-sm font-medium">质量门禁</p>
                        </div>
                        <div class="bg-blue-50 p-3 rounded-lg text-center">
                            <i class="fas fa-rocket text-purple-600 text-2xl mb-2"></i>
                            <p class="text-sm font-medium">一键部署</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Section 3: Containerization -->
        <section class="mb-20">
            <div class="flex items-center mb-10">
                <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                    <i class="fas fa-box-open text-xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold text-gray-800">三、容器化革命：Docker与Kubernetes</h2>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <h3 class="serif text-xl font-bold mb-4 text-gray-800">1. Docker化Java应用</h3>
                    <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                        <pre class="text-sm text-gray-800"><code>FROM eclipse-temurin:17-jdk
WORKDIR /app
COPY target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","app.jar"]</code></pre>
                    </div>
                    <div class="flex items-center mt-4">
                        <i class="fas fa-info-circle text-blue-500 mr-2"></i>
                        <p class="text-sm text-gray-600">将应用及其所有依赖打包到轻量级、可移植的容器中，实现环境一致性。</p>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <h3 class="serif text-xl font-bold mb-4 text-gray-800">2. Kubernetes编排实战</h3>
                    <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                        <pre class="text-sm text-gray-800"><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: java-app
spec:
  replicas: 3
  selector:
    matchLabels:
      app: java-backend
  template:
    metadata:
      labels:
        app: java-backend
    spec:
      containers:
      - name: app
        image: registry.example.com/java-app:v1.2.3
        ports:
        - containerPort: 8080
        resources:
          limits:
            memory: "1024Mi"
            cpu: "1"</code></pre>
                    </div>
                    <div class="flex items-center mt-4">
                        <i class="fas fa-info-circle text-blue-500 mr-2"></i>
                        <p class="text-sm text-gray-600">自动化部署、扩展和管理容器化应用，提供高可用性和弹性伸缩能力。</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Section 4: Monitoring -->
        <section class="mb-20">
            <div class="flex items-center mb-10">
                <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                    <i class="fas fa-chart-line text-xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold text-gray-800">四、智能监控与日志分析</h2>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <h3 class="serif text-xl font-bold mb-4 text-gray-800">1. Prometheus监控体系</h3>
                    <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                        <pre class="text-sm text-gray-800"><code># 监控Java应用的配置
- job_name: 'java_app'
  metrics_path: '/actuator/prometheus'
  static_configs:
    - targets: ['app-server:8080']</code></pre>
                    </div>
                    <div class="mt-4">
                        <h4 class="font-semibold text-gray-700 mb-2">监控指标</h4>
                        <div class="grid grid-cols-2 gap-2">
                            <span class="inline-flex items-center bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">
                                <i class="fas fa-memory mr-1"></i> JVM内存
                            </span>
                            <span class="inline-flex items-center bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">
                                <i class="fas fa-tachometer-alt mr-1"></i> CPU使用率
                            </span>
                            <span class="inline-flex items-center bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">
                                <i class="fas fa-exchange-alt mr-1"></i> 请求吞吐量
                            </span>
                            <span class="inline-flex items-center bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">
                                <i class="fas fa-clock mr-1"></i> 响应时间
                            </span>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <h3 class="serif text-xl font-bold mb-4 text-gray-800">2. ELK日志处理流水线</h3>
                    <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                        <pre class="text-sm text-gray-800"><code>// Logback配置示例
&lt;appender name="LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender"&gt;
    &lt;destination&gt;logstash:5000&lt;/destination&gt;
    &lt;encoder class="net.logstash.logback.encoder.LogstashEncoder"&gt;
        &lt;customFields&gt;{"appname":"${APP_NAME}"}&lt;/customFields&gt;
    &lt;/encoder&gt;
&lt;/appender&gt;</code></pre>
                    </div>
                    <div class="flex items-center">
                        <div class="flex-shrink-0">
                            <i class="fas fa-search text-blue-500 text-2xl"></i>
                        </div>
                        <div class="ml-3">
                            <p class="text-sm text-gray-600">集中收集、存储和分析日志数据，提供强大的搜索和可视化能力，助力快速故障排查。</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Section 5: Practical Example -->
        <section class="mb-20">
            <div class="flex items-center mb-10">
                <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                    <i class="fas fa-laptop-code text-xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold text-gray-800">五、实战：全自动Java应用交付平台</h2>
            </div>
            
            <div class="bg-white p-6 rounded-xl shadow-md mb-8">
                <h3 class="serif text-xl font-bold mb-4 text-gray-800">架构设计</h3>
                <div class="mermaid">
                    graph LR
                        A[GitLab] --> B[Jenkins]
                        B --> C[Nexus]
                        C --> D[Ansible]
                        D --> E[K8s]
                        E --> F[Prometheus + Grafana]
                        C --> G[ELK]
                </div>
            </div>
            
            <div class="mb-8">
                <h3 class="serif text-xl font-bold mb-4 text-gray-800">关键实现步骤</h3>
                <div class="space-y-4">
                    <div class="flex items-start">
                        <div class="bg-blue-100 text-blue-800 p-2 rounded-full mr-4 mt-1">
                            <i class="fas fa-1"></i>
                        </div>
                        <div>
                            <h4 class="font-semibold text-gray-700 mb-1">代码提交触发构建</h4>
                            <p class="text-gray-600">GitLab Webhook通知Jenkins，自动启动构建流程。</p>
                        </div>
                    </div>
                    
                    <div class="flex items-start">
                        <div class="bg-blue-100 text-blue-800 p-2 rounded-full mr-4 mt-1">
                            <i class="fas fa-2"></i>
                        </div>
                        <div>
                            <h4 class="font-semibold text-gray-700 mb-1">质量门禁检查</h4>
                            <p class="text-gray-600">SonarQube代码扫描，确保代码质量达标。</p>
                        </div>
                    </div>
                    
                    <div class="flex items-start">
                        <div class="bg-blue-100 text-blue-800 p-2 rounded-full mr-4 mt-1">
                            <i class="fas fa-3"></i>
                        </div>
                        <div>
                            <h4 class="font-semibold text-gray-700 mb-1">制品管理</h4>
                            <p class="text-gray-600">Nexus存储Docker镜像，版本控制与依赖管理。</p>
                        </div>
                    </div>
                    
                    <div class="flex items-start">
                        <div class="bg-blue-100 text-blue-800 p-2 rounded-full mr-4 mt-1">
                            <i class="fas fa-4"></i>
                        </div>
                        <div>
                            <h4 class="font-semibold text-gray-700 mb-1">金丝雀发布</h4>
                            <p class="text-gray-600">Argo Rollouts渐进式部署，降低发布风险。</p>
                        </div>
                    </div>
                    
                    <div class="flex items-start">
                        <div class="bg-blue-100 text-blue-800 p-2 rounded-full mr-4 mt-1">
                            <i class="fas fa-5"></i>
                        </div>
                        <div>
                            <h4 class="font-semibold text-gray-700 mb-1">监控反馈</h4>
                            <p class="text-gray-600">Prometheus自动扩容策略，基于指标动态调整资源。</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="serif text-xl font-bold mb-4 text-gray-800">全链路耗时对比</h3>
                <div class="overflow-x-auto">
                    <table class="min-w-full comparison-table">
                        <thead>
                            <tr>
                                <th class="text-left">阶段</th>
                                <th class="text-center">传统方式</th>
                                <th class="text-center">自动化方案</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td class="font-medium">代码编译</td>
                                <td class="text-center">15分钟</td>
                                <td class="text-center text-green-600 font-semibold">2分钟</td>
                            </tr>
                            <tr>
                                <td class="font-medium">环境部署</td>
                                <td class="text-center">1小时</td>
                                <td class="text-center text-green-600 font-semibold">30秒</td>
                            </tr>
                            <tr>
                                <td class="font-medium">故障恢复</td>
                                <td class="text-center">4小时</td>
                                <td class="text-center text-green-600 font-semibold">5分钟</td>
                            </tr>
                            <tr>
                                <td class="font-medium">版本回滚</td>
                                <td class="text-center">2小时</td>
                                <td class="text-center text-green-600 font-semibold">1分钟</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </section>

        <!-- Section 6: Tips -->
        <section class="mb-20">
            <div class="flex items-center mb-10">
                <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                    <i class="fas fa-lightbulb text-xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold text-gray-800">六、进阶技巧与避坑指南</h2>
            </div>
            
            <div class="grid md:grid-cols-3 gap-8">
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <h3 class="serif text-xl font-bold mb-4 text-gray-800">1. 性能优化秘籍</h3>
                    <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                        <pre class="text-sm text-gray-800"><code># Jenkins调优参数
JAVA_OPTS="-Xms4g -Xmx4g -XX:+UseG1GC"
# Ansible并发控制
ansible-playbook -f 50 deploy.yml</code></pre>
                    </div>
                    <ul class="space-y-2 text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check text-blue-500 mt-1 mr-2"></i>
                            <span>合理设置JVM参数</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check text-blue-500 mt-1 mr-2"></i>
                            <span>控制并发任务数</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check text-blue-500 mt-1 mr-2"></i>
                            <span>优化网络连接</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <h3 class="serif text-xl font-bold mb-4 text-gray-800">2. 安全加固方案</h3>
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <div class="bg-red-100 text-red-800 p-2 rounded-full mr-3">
                                <i class="fas fa-shield-alt"></i>
                            </div>
                            <div>
                                <h4 class="font-semibold text-gray-700 mb-1">镜像扫描</h4>
                                <p class="text-sm text-gray-600">Trivy集成到CI流程，识别漏洞。</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <div class="bg-red-100 text-red-800 p-2 rounded-full mr-3">
                                <i class="fas fa-key"></i>
                            </div>
                            <div>
                                <h4 class="font-semibold text-gray-700 mb-1">密钥管理</h4>
                                <p class="text-sm text-gray-600">HashiCorp Vault动态凭证，避免硬编码。</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <div class="bg-red-100 text-red-800 p-2 rounded-full mr-3">
                                <i class="fas fa-network-wired"></i>
                            </div>
                            <div>
                                <h4 class="font-semibold text-gray-700 mb-1">网络策略</h4>
                                <p class="text-sm text-gray-600">Calico零信任网络，最小权限原则。</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl shadow-md">
                    <h3 class="serif text-xl font-bold mb-4 text-gray-800">3. 调试工具箱</h3>
                    <div class="code-block p-4 rounded mb-4 overflow-x-auto">
                        <pre class="text-sm text-gray-800"><code># 查看K8s事件流
kubectl get events --sort-by=.metadata.creationTimestamp
# 追踪Ansible执行
ANSIBLE_DEBUG=1 ansible-playbook deploy.yml
# 分析Jenkins内存
jmap -dump:format=b,file=heap.bin &lt;pid&gt;</code></pre>
                    </div>
                    <div class="flex items-center text-sm text-gray-600">
                        <i class="fas fa-bug text-yellow-500 mr-2"></i>
                        <p>快速定位问题，提高故障排查效率。</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Section 7: AIOps -->
        <section class="mb-20">
            <div class="flex items-center mb-10">
                <div class="bg-blue-100 text-blue-800 p-3 rounded-full mr-4">
                    <i class="fas fa-brain text-xl"></i>
                </div>
                <h2 class="serif text-3xl font-bold text-gray-800">AIOps的曙光</h2>
            </div>
            
            <div class="bg-gradient-to-r from-blue-50 to-purple-50 p-8 rounded-xl shadow-inner">
                <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
                    <div class="bg-white p-5 rounded-lg shadow-sm hover:shadow-md transition">
                        <div class="text-purple-600 mb-3">
                            <i class="fas fa-bell text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-gray-800 mb-2">智能预警</h3>
                        <p class="text-gray-600 text-sm">基于机器学习分析监控数据，提前发现异常模式。</p>
                    </div>
                    
                    <div class="bg-white p-5 rounded-lg shadow-sm hover:shadow-md transition">
                        <div class="text-green-600 mb-3">
                            <i class="fas fa-heartbeat text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-gray-800 mb-2">自愈系统</h3>
                        <p class="text-gray-600 text-sm">自动诊断并修复常见故障，减少人工干预。</p>
                    </div>
                    
                    <div class="bg-white p-5 rounded-lg shadow-sm hover:shadow-md transition">
                        <div class="text-blue-600 mb-3">
                            <i class="fas fa-chart-bar text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-gray-800 mb-2">预测扩容</h3>
                        <p class="text-gray-600 text-sm">根据历史流量预测资源需求，自动调整容量。</p>
                    </div>
                    
                    <div class="bg-white p-5 rounded-lg shadow-sm hover:shadow-md transition">
                        <div class="text-red-600 mb-3">
                            <i class="fas fa-comments text-2xl"></i>
                        </div>
                        <h3 class="font-semibold text-gray-800 mb-2">自然语言运维</h3>
                        <p class="text-gray-600 text-sm">ChatOps与智能助手，用自然语言交互完成运维任务。</p>
                    </div>
                </div>
                
                <div class="mt-8 text-center">
                    <p class="text-gray-700 italic">"AIOps将机器学习应用于IT运维，实现从被动响应到主动预防的转变。"</p>
                </div>
            </div>
        </section>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-900 text-gray-200 py-10">
        <div class="container mx-auto max-w-6xl px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h3 class="text-xl font-bold">技术小馆</h3>
                    <p class="text-gray-400 mt-1">探索技术的无限可能</p>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" class="text-blue-300 hover:text-blue-100 transition duration-300 flex items-center">
                        <i class="fas fa-external-link-alt mr-2"></i>
                        <span>www.yuque.com/jtostring</span>
                    </a>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500 text-sm">
                <p>© 2023 技术小馆. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            fontFamily: 'Noto Sans SC, sans-serif'
        });
        
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
        
        // 卡片悬停效果
        document.querySelectorAll('.card-hover').forEach(card => {
            card.addEventListener('mouseenter', () => {
                card.style.boxShadow = '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)';
            });
            card.addEventListener('mouseleave', () => {
                card.style.boxShadow = '';
            });
        });
    </script>
</body>
</html>